//
//  UIBarButtonItem+STBarButtonItem.m
//  CuiBoStore
//
//  Created by 崔博 on 16/12/4.
//  Copyright © 2016年 崔博. All rights reserved.
//

#import "UIBarButtonItem+STBarButtonItem.h"

@implementation UIBarButtonItem (STBarButtonItem)
+ (instancetype)barItem:(NSString *)image title:(NSString *)title target:(id)target action:(SEL)action
{
    UIButton *btn = [STUIKitTools buttonImage:image title:title font:15 action:action titleColor:[UIColor blackColor] target:target];
    [btn sizeToFit];
    return [[self alloc] initWithCustomView:btn];
}

@end
